#include "sprite.h"

Sprite::Sprite(int x, int y, int w, int h)
	: src { Vec4(x, y, w, h) }
{}

Sprite::Sprite(SDL_Texture *texture)
	: src { Vec4(texture) }
{
	src.x = 0;
	src.y = 0;
}

Sprite::Sprite(int x, int y, int w, int h, bool animated, int frames, int current_frame, int duration)
	: src { Vec4(x, y, w, h) }, animated {animated}, frames {frames}, current_frame {current_frame}, duration {duration}
{}